package com.magicmovie.api.service;

import com.magicmovie.api.service.impl.DictionaryServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "service",fallback = DictionaryServiceImpl.class)
public interface DictionaryService {

    @RequestMapping(value = "/dictionary/findByKeyNo",method = RequestMethod.GET)
    List<Map<String, Object>> findByKeyNo(@RequestParam("keyNo") String keyNo);
}
